package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the EX_RECEPCION database table.
 * 
 */
@Entity
@Table(name="EX_RECEPCION")
public class ExRecepcion implements Serializable {
	private static final long serialVersionUID = 1L;
	private ExRecepcionPK id;
	private String errorCodigo;
	private String estado;
	private Date tmstmpSendA1;
	private Date tmstmpSendA2;
	private Date tmstmpTx;

    public ExRecepcion() {
    }


	@EmbeddedId
	public ExRecepcionPK getId() {
		return this.id;
	}

	public void setId(ExRecepcionPK id) {
		this.id = id;
	}
	

	@Column(name="ERROR_CODIGO", length=6)
	public String getErrorCodigo() {
		return this.errorCodigo;
	}

	public void setErrorCodigo(String errorCodigo) {
		this.errorCodigo = errorCodigo;
	}


	@Column(nullable=false, length=2)
	public String getEstado() {
		return this.estado;
	}

	public void setEstado(String estado) {
		this.estado = estado;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="TMSTMP_SEND_A1", nullable=false)
	public Date getTmstmpSendA1() {
		return this.tmstmpSendA1;
	}

	public void setTmstmpSendA1(Date tmstmpSendA1) {
		this.tmstmpSendA1 = tmstmpSendA1;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="TMSTMP_SEND_A2")
	public Date getTmstmpSendA2() {
		return this.tmstmpSendA2;
	}

	public void setTmstmpSendA2(Date tmstmpSendA2) {
		this.tmstmpSendA2 = tmstmpSendA2;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="TMSTMP_TX", nullable=false)
	public Date getTmstmpTx() {
		return this.tmstmpTx;
	}

	public void setTmstmpTx(Date tmstmpTx) {
		this.tmstmpTx = tmstmpTx;
	}

}